
<%@ page import="edu.hawaii.kukui.ActivityImageAttempt" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'activityImageAttempt.label', default: 'ActivityImageAttempt')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${activityImageAttemptInstance}">
            <div class="errors">
                <g:renderErrors bean="${activityImageAttemptInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" method="post"  enctype="multipart/form-data">
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="noteToAdmin"><g:message code="activityImageAttempt.noteToAdmin.label" default="Note To Admin" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: activityImageAttemptInstance, field: 'noteToAdmin', 'errors')}">
                                    <g:textArea name="noteToAdmin" cols="40" rows="5" value="${activityImageAttemptInstance?.noteToAdmin}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="validateComment"><g:message code="activityImageAttempt.validateComment.label" default="Validate Comment" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: activityImageAttemptInstance, field: 'validateComment', 'errors')}">
                                    <g:textArea name="validateComment" cols="40" rows="5" value="${activityImageAttemptInstance?.validateComment}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="validateStatus"><g:message code="activityImageAttempt.validateStatus.label" default="Validate Status" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: activityImageAttemptInstance, field: 'validateStatus', 'errors')}">
                                    <g:select name="validateStatus" from="${activityImageAttemptInstance.constraints.validateStatus.inList}" value="${activityImageAttemptInstance?.validateStatus}" valueMessagePrefix="activityImageAttempt.validateStatus" noSelection="['': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="activityImage"><g:message code="activityImageAttempt.activityImage.label" default="Activity Image" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: activityImageAttemptInstance, field: 'activityImage', 'errors')}">
                                    <input type="file" id="activityImage" name="activityImage" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="imageCaption"><g:message code="activityImageAttempt.imageCaption.label" default="Image Caption" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: activityImageAttemptInstance, field: 'imageCaption', 'errors')}">
                                    <g:textArea name="imageCaption" cols="40" rows="5" value="${activityImageAttemptInstance?.imageCaption}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="selectTimestamp"><g:message code="activityImageAttempt.selectTimestamp.label" default="Select Timestamp" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: activityImageAttemptInstance, field: 'selectTimestamp', 'errors')}">
                                    <g:datePicker name="selectTimestamp" precision="day" value="${activityImageAttemptInstance?.selectTimestamp}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="lastUpdated"><g:message code="activityImageAttempt.lastUpdated.label" default="Last Updated" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: activityImageAttemptInstance, field: 'lastUpdated', 'errors')}">
                                    <g:datePicker name="lastUpdated" precision="day" value="${activityImageAttemptInstance?.lastUpdated}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="submitTimestamp"><g:message code="activityImageAttempt.submitTimestamp.label" default="Submit Timestamp" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: activityImageAttemptInstance, field: 'submitTimestamp', 'errors')}">
                                    <g:datePicker name="submitTimestamp" precision="day" value="${activityImageAttemptInstance?.submitTimestamp}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="kukuiUser"><g:message code="activityImageAttempt.kukuiUser.label" default="Kukui User" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: activityImageAttemptInstance, field: 'kukuiUser', 'errors')}">
                                    <g:select name="kukuiUser.id" from="${edu.hawaii.kukui.KukuiUser.list()}" optionKey="id" value="${activityImageAttemptInstance?.kukuiUser?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="dateCreated"><g:message code="activityImageAttempt.dateCreated.label" default="Date Created" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: activityImageAttemptInstance, field: 'dateCreated', 'errors')}">
                                    <g:datePicker name="dateCreated" precision="day" value="${activityImageAttemptInstance?.dateCreated}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="validateTimestamp"><g:message code="activityImageAttempt.validateTimestamp.label" default="Validate Timestamp" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: activityImageAttemptInstance, field: 'validateTimestamp', 'errors')}">
                                    <g:datePicker name="validateTimestamp" precision="day" value="${activityImageAttemptInstance?.validateTimestamp}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="activity"><g:message code="activityImageAttempt.activity.label" default="Activity" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: activityImageAttemptInstance, field: 'activity', 'errors')}">
                                    <g:select name="activity.id" from="${edu.hawaii.kukui.Activity.list()}" optionKey="id" value="${activityImageAttemptInstance?.activity?.id}"  />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
